package com.itheima.tlias08_14.aop.cglib;

import com.itheima.tlias08_14.annotation.Log;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class Dmr {

    @Log
    @GetMapping("/playGame")
    public String playGame(){
        try {
            Thread.sleep(2020);
            return "玩了20秒";
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
    }
}
